package com.activemanager.digitalTrain;

import java.io.InputStream;

import com.example.android.navigationdrawerexample.R;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.view.View.OnTouchListener;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;


public class Calibrating_DT1 extends Activity {
	Button TVDt1More = null;
	RelativeLayout rl = null;
	GestureDetector mGestureDetector;
	Calibrating_view myview;
	private int verticalMinDistance = 10;   
	private int minVelocity         = 0;
	
	
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.calibrating_dt1);
		initPic();
		
		TextView tv_more = (TextView) findViewById(R.id.tv_rec);
		tv_more.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent intent = new Intent();
				intent.setClass(Calibrating_DT1.this, WelcomeCalibrating_DT0.class);
				startActivity(intent);
				finish();
			}
			
		});
		
		ImageView img_home = (ImageView) findViewById(R.id.imageView);
		img_home.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				finish();
			}});
		
	}


	private void initPic() {
		// TODO Auto-generated method stub
		BitmapFactory.Options opt = new BitmapFactory.Options();
		opt.inPreferredConfig = Bitmap.Config.RGB_565;
		opt.inPurgeable = true;
		opt.inInputShareable = true;
	
		
		ImageView img1 = (ImageView) findViewById(R.id.imageView1);
		InputStream is1 = getResources().openRawResource(
				R.drawable.d13_normal);
		Bitmap bit1 = BitmapFactory.decodeStream(is1, null, opt);
		img1.setImageBitmap(bit1);
	}


	
}
